package data

import (
	"gitee.com/shuokeyun/item-service/internal/data/ent"
	"gitee.com/shuokeyun/item-service/internal/domain"
)

func poConvDo(po *ent.Item) *domain.Item {
	return &domain.Item{
		Code:             po.Code,
		Name:             po.Name,
		FullName:         po.FullName,
		PriceArea:        po.PriceArea,
		Brand:            po.Brand,
		Status:           po.Status,
		MarketPrice:      po.MarketPrice,
		CostPrice:        po.CostPrice,
		CustomCombo:      po.CustomCombo,
		CanSeparate:      po.CanSeparate,
		CheckedWithItem:  po.CheckedWithItem,
		SexLimit:         po.SexLimit,
		ChildItem:        po.ChildItem,
		RejectItem:       po.RejectItem,
		TestQtyDesc:      po.TestQtyDesc,
		TestQty:          po.TestQty,
		StorageCondition: po.StorageCondition,
		TestMethod:       po.TestMethod,
		ReportTimeDesc:   po.ReportTimeDesc,
		Consumable:       po.Consumable,
		EmptyStomach:     po.EmptyStomach,
		Significance:     po.Significance,
		CategoryId:       po.CategoryID,
		CreatedAt:        po.CreatedAt,
		UpdatedAt:        po.UpdatedAt,
	}
}
